package com.chainyoung.common.exception;


import java.util.List;

/**
 * Created by Administrator on 2017/3/21.
 */

public class ApiException extends RuntimeException {
    private String mErrorCode;
    private String message;
//    private T mContent;
    
    public ApiException(String message){
        this.message=message;
    }

    public ApiException(String mErrorCode,String message) {
        this.mErrorCode = mErrorCode;
        this.message=message;

    }

    public ApiException(String mErrorCode,Object content) {
        this.mErrorCode = mErrorCode;
    }
    public ApiException(String mErrorCode,List<Object> content) {
        this.mErrorCode = mErrorCode;
    }
    public String getErrorCode() {
        return mErrorCode;
    }

    public void setErrorCode(String errorCode) {
        mErrorCode = errorCode;
    }

    @Override
    public String getMessage() {
        return message;
    }


}
